Alloy Interview Question

Coding question to parse the data