This question is part of system design question…hence give a look. Do support our YouTube channel. Everyday we solve one interview question asked by TOP IT company. Happy Coding .