Pregunta de entrevista de NTT DATA

Few Puzzles, basic c programs