Help rahul to search doubt

https://ide.codingblocks.com/s/65911
@Anubhav-Aron-1353657628083250

1.FindPivot function is not working correctly,it is not returning correct pivot point .
2. During binary search Line 48-> replace n with n-1
Hit like if u get it :slight_smile:
Let us know if u are not able to debug findPivot function