c[s.charAt(i)]++; how this will add the value
c[βaβ]++ ; means??? c[βaβ]=c[βaβ]+1; ??? Can you explain?
c[s.charAt(i)]++;
@pallavigoel1996 this will just have the count of character a being held in c incremented by one. so every βcharβ that is encountered increments its c[βcharβ] inc by 1 .