Pergunta de entrevista da empresa Kaar Technologies

paper code on c,java output must without errors