first attempt at doubleEveryOther function