Microsoft interview question

Implement the hint function in the Bubble Breaker game