Solutions to different Topcoder puzzles