NetSet Software interview question

Gave assignment on rest api