Pregunta de entrevista de Chatham Financial

Simple Leetcode problem that can be solved