Amazon Interview Question

Train problems, age problems.