Pergunta de entrevista da empresa Ibotta

JSON parsing and computation problem in a language of choice.