Driver code
static public void Main ( ) { int [ ] codeTime = { 1 , 2 , 3 , 1 , 1 , 3 } ; int n = codeTime . Length ; int WorkingSessionTime = 4 ; Console . WriteLine ( solve ( codeTime , n , WorkingSessionTime ) ) ; } }