Code for the exercises from www.codingbat.com