Pergunta de entrevista da empresa Meta

A few coding questions in Python, two with for loops and vectors and the third with recursion.