The Zappos Family interview question

Challenge round was mostly picked from leetcode and hackerrank. Can be cleared easily