Help me in solving DUPLETC problem

My issue

i didnt get how to solve it

Learning course: Bit Manipulation
Problem Link: Dull Operation in Bit Manipulation