subStringLengthofMainString.java

How to compare the max length of subString within the MainString.