Capital One Interview Question

case interview, OOP, system design