I was asked this question in Amazon's SDE2 interview. There was no blackboard to draw the design diagram nor I has time to get the estimates of this system. Only think was the system should be scalable.
Use Case:
I was asked to give the answers to the interviewers question only. I was also asked how will you design a OTP system and GET or POST APIs. I am a bit unclear of this system. How to solve this problem?