This problem can be solved by preschool children in five minutes, by programmers in an hour, and by you…well, give it a shot!