Epsilon interview question

Simple hashMap and array problems