Pergunta de entrevista da empresa J.P. Morgan

Leetcode Medium, Leetcode Hard question