My solution to the daily programming challenge 145. (Better Nate than Lever.)