Solving the "Make Change" question from Ruby Quiz