Pregunta de entrevista de Bloomberg

Frequently asked question in LeetCode.