Trainline Interview Question

Design patterns and algorithms, etc