Wrong answer in CALCULATE THE CHANGE OF SONU TITU

https://hack.codingblocks.com/contests/c/471/1551
https://ide.codingblocks.com/#/s/19082

Think if u have 2 A in one string and another string have 1 A so this create a mess in ur code and same for all other case,take care of this otherwise ur code is fine

Yeah !! you have to take care of dublicates as well . Donot iterate on string for count, iterate on map 1 first and then on map 2 , i am giving you its code ,if you stuck you can take help of this
https://ide.codingblocks.com/#/s/19103

Hey bro can u explain ur logic