Goldman Sachs Interview Question

Leetcode Easy Problem - High Five