Update and rename final_ex_1014.c to final_ex_1014.cpp