no . of elements smaller than x , that is , l .
elif a [ i ] < x : NEW_LINE INDENT l += 1 NEW_LINE DEDENT ans = 0 ; NEW_LINE if l > h : NEW_LINE ans = l - h NEW_LINE elif l < h : NEW_LINE ans = h - l - 1 ; NEW_LINE