Capital One interview question

System design question