Tech Mahindra interview question

Questions were asked on data structures and from my branch (Electronics).