HackerRank May Challenge 2013