Applied Materials Interview Question

Stack related question and DP related