Pregunta de entrevista de Tech Mahindra

Question on c,c++ ,data structures and graduation project