Intel Corporation Interview Question

Leetcode questions, three in total