Pergunta de entrevista da empresa Google DeepMind

Solve a hackerrank-esque python problem in a Jupyter notebook