Intuit interview question

asked to solve a puzzle.