Driver code
static void Main ( ) { char [ ] X = " geeks " . ToCharArray ( ) ; char [ ] Y = " geeksfor " . ToCharArray ( ) ; char [ ] Z = " geeksforge " . ToCharArray ( ) ; int m = X . Length ; int n = Y . Length ; int o = Z . Length ; Console . WriteLine ( " Length ▁ of ▁ LCS ▁ is ▁ " + lcs ( X , Y , Z , m , n , o ) ) ; } }