in reply to Create a hash by spliting string

Where is your code? Where is your attempt?

Oh I forgot for a second that you're taking a test. Ask your teacher :)