Test case not passed

sir in the HELP RAHUL TO SEARCH PROBLEM
my code https://ide.codingblocks.com/s/121980
is working fine and satisfying the input and output conditions but still doesnot pass the test case.why?

You have performed simple binary search on the array, but binary search only works if the array is sorted. In the question it says that the sorted array is rotated. So, you need to modify your binary search algorithm so that it works for the rotated array.