CodingBat exercise