Driver code
public static void main ( String [ ] args ) { int arr [ ] = { 1 , 94 , 93 , 1000 , 5 , 92 , 78 } ; int n = arr . length ; System . out . println ( findLongestConseqSubseq ( arr , n ) ) ; } }