currently, files saved are of extension cpp only. Read the language of code submitted and save file with appropriate extension