solutions for codingbat