HomeLane Interview Question

Design an api for given problem statement