is the second condition in the while loop correct ?
the while condition is as follwos:
while(s.empty() == false && arr[s.top()] <currPrice)
I am talking about the second condition in the while i.e arr[s.top()]<currPrice, I assume that it is incorrect and must infact be s.top()<currPrice. Isn’t it? Correct me If I am wrong