Capital One interview question

BST, System Design