https://ide.codingblocks.com/s/39568
my code for https://hack.codingblocks.com/contests/c/537/88
it is a simple recursive binary search to find last occurrence
But I am unable to understand why my code is getting stuck in an infinite loop.
Pls help
thanks