Subway Interview Question

How to solve the problem.