Given two strings ‘X’ and ‘Y’, find the length of the longest common substring. Example: “This is a string” “And this is another string” should give the output “his is a”