Domanda di colloquio di Smoothstack

Easy/Medium leetcode problem for the Coding Challenge.