Pregunta de entrevista de Bloomberg

Leetcode problems from medium to hard