Tech Mahindra interview question

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