solutions to codingbat exercises