Retain.ai interview question

How would you design a metro ticketing system?