OANDA interview question

Question about an algorithm for scrumble game