Pergunta de entrevista da empresa Apple

Many that needs to be coded in python.