Pergunta de entrevista da empresa Turbolab Technologies

Given a problem statement to solve in Python