Driver Code
public static void main ( String [ ] args ) { int [ ] A = { 2 , 8 , 3 , 10 , 6 , 7 , 4 , 9 } ; int N = A . length ; int K = 60 ; System . out . println ( find_longest_subarray ( A , N , K ) ) ; } }