Driver code
public static void Main ( String [ ] args ) { int [ ] arr = { 6 , 4 , 10 , 13 , 9 , 25 } ; int n = arr . Length ; Console . Write ( longestPowerfulSubsequence ( arr , n ) + " STRNEWLINE " ) ; } }