Create 1_2_ride.cpp

again same program but in function