@shivamg_isc , agree with you.
As the problem statement says the given m edges are non-intersecting.
For n=5, and the optimal planar graph will have 9 edges (i.e. we cannot add more edge). Since they are not giving non-intersecting edges they cannot give m>=10 for n=5, so for m<9 answer should be 0 and m>=9 answer should be 1. But it gave me wrong answer. I got correct answer for 20 points when i did m==9 instead of m>=9. Why so, if they haven't given m>=10 (because for m>=10 the m edges will intersect) ???
I mean answer should not depend for m>=10 for n=5 since they are not giving non-intersecting edges.
Am i wrong anywhere in understanding anything??