HomeLane interview question

Design an api for given problem statement