Pregunta de entrevista de Riyad Bank

System design question based on scanrio.