Tech Mahindra interview question

Some basic Algorithm and logical reasoning