Strongest fighter

https://ide.codingblocks.com/s/364234 strongest fighter is not passing test cases

hello @shrutikatyal

check now ->

https://ide.codingblocks.com/s/364115 its not passing test cases pls make corection in my code pls tell me how to make it circular in next greatest element in stack

pls raise doubt from that problem question itself.