@Algorithmist

Did you dream of all the possibilities?

@bismeetsingh352

Great solution, but could have directly used counter instead of a defaultdict.