• + 0 comments

    if you put one more check i.e, **if (!(s.length()%2 ==0) ) ** before for loop it will improve it's performance and many cases straight forward it will be passed