hw04. CodingBat exercises