Question d’entretien chez Bank of America

standard leetcode style problem, current financial experience