IBM interview question

Use REST API to parse input