A iterative randomized binary search function . It returns location of x in given array arr [ l . . r ] if present , otherwise - 1
def randomizedBinarySearch ( arr , l , r , x ) : NEW_LINE INDENT while ( l <= r ) : NEW_LINE DEDENT