Topic: Stack Problem / Level: intermediate

Problem: Write a program to find the largest element on the left of each element in an array using a stack.

Run the code to see the output here...