Solutions to codingbat programming puzzles