Pergunta de entrevista da empresa ANZ

Coding test for python, medium difficulty leetcode problem