Nagarro interview question

Coding question 1- Find longest common substring.