Concatenate

  • + 0 comments

    No bro, read the question carefully. Test case "abbac" should be YES becoz we can remove 1 char at 1 index only. So, if u remove 'c' then resulting string is "abba" where frequency is: a-2 and b-2.So, it is valid string. Correct me if i m wrong.