Tide Interview Question

Rest API - code review