I am reading below list into a Counter and i want to group all keys into a nested list as shown below
import collections A=["cool","lock",