Solutions to codingBat logic-1 section