Infosys interview question

Write code using enumeration using hastable