Driver program to test above function
int main ( ) { int n = 5 ; int high [ ] = { 3 , 6 , 8 , 7 , 6 } ; int low [ ] = { 1 , 5 , 4 , 5 , 3 } ; printf ( " % d " , maxTasks ( high , low , n ) ) ; return 0 ; }