Pergunta de entrevista da empresa InnoBoon

Python basics question and dsa problem