Exercises from codingbat