Rapid7 Interview Question

Given some metadata, parse the information and provide some transformed output.