I'm getting 2 test cases wrong

@Anchal
You are storing c and r in your array and sorting according to c. Instead you should store the leftmost and the rightmost points of the circle i.e. c-r and c+r. The sorting should be done as per the rightmost point values i.e. c+r. Your approach is incorrect. Make the according changes.