Applied Materials Interview Question

a Leetcode Easy type question