PointClickCare interview question

They asked me to solve a coding puzzle.