Pergunta de entrevista da empresa L&T Technology Services

Python coding question to solve