Kraken interview question

What changes would you make to your solution?