note string equivalence
bit implementation
count freq of chars
note the change of index