The maximum substring

Problem Name:
The maximum substring
Site:HackerEarth
Links:
Tags:
Problem setters: