Microsoft interview question

Question on hash logic.