Find product of every contiguous subsequence
for ( var i = 0 ; i < sz ; i ++ ) { var product = 1 ; for ( var j = i ; j < sz ; j ++ ) { product *= ( s [ j ] . charCodeAt ( 0 ) - ' ' . charCodeAt ( 0 ) ) ;