Pregunta de entrevista de Tata Consultancy Services

write a program in c,c++