Https://hack.codingblocks.com/practice/p/380/1555

https://hack.codingblocks.com/practice/p/380/1555
I am not able to find the correct approach to this problem. please help

Hi Aastha, if you’ve tried any approach for this question, share your code here. We’ll help you with it further. I hope the question is clear - given a string, you have to find the length of the longest substring (i.e. contiguous characters) that occurs atleast twice in the given string considering that overlapping is allowed.