OANDA Interview Question

Question about an algorithm for scrumble game