507 - Jill Rides Again (solve using function)