Pergunta de entrevista da empresa HCLTech

Asked me to correct error in c program