Wrong editorial solution(Important observation)


#1

Editorial solution doen’t give right ans on test case [aaa,aa]. Ans should be 1 but it doesn’t give 1. Please see!!