Kata 02 solution