CloudCover interview question

Parse a JSON file and return the expected output