Driver code
public static void Main ( String [ ] args ) { char [ ] S = " babab " . ToCharArray ( ) ; char [ ] T = " babba " . ToCharArray ( ) ; int m = S . Length , n = T . Length ; int ans = shortestSeq ( S , T , m , n ) ; if ( ans >= MAX ) ans = - 1 ; Console . Write ( " Length ▁ of ▁ shortest ▁ subsequence ▁ is : ▁ " + ans + " STRNEWLINE " ) ; } }