relayr interview question

Design a solution for problem statement