Visa Inc. interview question

DSA - Json manipulation problem