Microsoft Interview Question

stack based dsa question , its east its mostly about monotonus stack