Find the greater element

ek test case wrong aa rha h?

hello @rishabh0
pls share ur code using cb ide