Pregunta de entrevista de Capital One

Design question for technical, in python or java. Didn't run code, didn't need advanced data structures.