Added Marks code for common substring