Microsoft Interview Question

Question on hash logic.