the power string maximum length nonempty substring contain unique charactergiven string s return power s Example 1input s leetcodeoutput 2explanation the substring ee length 2 character e onlyExample 2Input s abbcccddddeeeeedcbaoutput 5explanation the substre eeeee length 5 character e Constraints1 slength 500s consist lowercase english letter