Domanda di colloquio di Tech Mahindra

Given three coding questions and asked to write a code for those