Driver Code
let X = " " ; let Y = " " ; let m = X . length ; let n = Y . length ; document . write ( " " + LCS ( X , Y , m , n ) + " " ) ; let s = findLCS ( X , Y , m , n ) ; for ( let str of s . values ( ) ) document . write ( str + " " ) ;