Pregunta de entrevista de Bank of America

standard leetcode style problem, current financial experience