Driver Code
static public void Main ( ) { List < List < int > > rectangle = new List < List < int > > ( ) ; List < List < int > > points = new List < List < int > > ( ) ; List < List < int > > triangle = new List < List < int > > ( ) ; rectangle . Add ( new List < int > ( ) { 6 , 5 } ) ; rectangle . Add ( new List < int > ( ) { 2 , 2 } ) ; rectangle . Add ( new List < int > ( ) { 2 , 1 } ) ; rectangle . Add ( new List < int > ( ) { 5 , 5 } ) ; points . Add ( new List < int > ( ) { 1 , 1 } ) ; points . Add ( new List < int > ( ) { 6 , 1 } ) ; points . Add ( new List < int > ( ) { 6 , 6 } ) ; points . Add ( new List < int > ( ) { 1 , 6 } ) ; triangle . Add ( new List < int > ( ) { 4 , 4 } ) ; triangle . Add ( new List < int > ( ) { 0 , 4 } ) ; triangle . Add ( new List < int > ( ) { 0 , - 2 } ) ; countPoints ( points , triangle , rectangle ) ; } }