Tide interview question

Rest API - code review