Function to find the count of minimum length of the sequence
function Count ( S , m , n ) { let table = [ ] ; for ( let i = 0 ; i < m + 1 ; i ++ ) { table [ i ] = [ ] ; for ( let j = 0 ; j < n + 1 ; j ++ ) { table [ i ] [ j ] = 0 ; } }