Sera Systems Interview Question

Ruby array and hash manipulation