Histogram using stack

My code is not passing the test-cases, plz check

Hello @yath17

Inside your else statement, you need to pop all elements which are greater than the current element.

Here is the modified code