you give string s consist n letter letter b the letter string number 1 nsl r continuous substre letter index l r string inclusive a string call balanced number letter equal number letter b for example string baba aabbab balanced strings aaab b notFind nonempty balanced substring sl r string s Print l r 1 le l le r le n if substre print 1 1