Driver code
public static void Main ( String [ ] args ) { List < int > arr = new List < int > ( ) ; arr . Add ( 6 ) ; arr . Add ( 2 ) ; arr . Add ( 3 ) ; arr . Add ( 4 ) ; arr . Add ( 5 ) ; arr . Add ( 5 ) ;