Function to perform binary search in an a subarray if elements of the subarray are in an ascending order
static int reverseBS ( int X , int left , int right , List < int > arr ) { while ( left <= right ) {