Intel Corporation interview question

Walk through the solution to a LeetCode-type question