Pergunta de entrevista da empresa Chatham Financial

Simple Leetcode problem that can be solved