C # program to find the least non - overlapping number from a given set intervals
using System ; class GFG { static int MAX = ( int ) ( 1e5 + 5 ) ; class pair { public int first , second ; public pair ( int first , int second ) { this . first = first ; this . second = second ; } }