CGI interview question

Asked: Converting ArrayList into Set, HashMap internal Working