WareIQ interview question

Consume a api and parse the payload