Sera Systems interview question

Ruby array and hash manipulation