LinkedIn Interview Question

Technical round - Max stack leetcode question