Pregunta de entrevista de Tech Mahindra

Basic Python syntax. Questions on sorting, lists.