Help me in solving PAIREQ problem

My issue

My code

# cook your dish here

Problem Link: PAIREQ Problem - CodeChef

@kl_99210042275
The logic is quite simple just count the maximum freq among them then subtract it from the array size .