HashedIn by Deloitte Interview Question

OOPS concepts, bitmasking and other