Tech Mahindra interview question

NOTHING DIFFICULT ALL ROUND WERE EASY