code snippets for problems on codingbat.com