Equal substrings

Problem Name:
Equal substrings
Site:HackerEarth
Links:
Tags: