Pregunta de entrevista de Google

Time complexity and space complexity; python;