Pergunta de entrevista da empresa SimVentions

Asked a Leetcode style algorithm challenge