Pergunta de entrevista da empresa Bloomberg

Leetcode question on machine learning