Driver code
public static void Main ( String [ ] args ) { int [ ] arr = { 13 , 55 , 240 , 32 , 24 , 27 , 56 , 80 , 100 , 330 , 89 } ; int N = arr . Length ; Console . WriteLine ( LongestNonDeficientSubsequence ( arr , N ) ) ; } }