All Your Bases kata from Google Jam