Electricity Maps interview question

Coding challenge to transform a pretty simple dataset in JSON format