Trainline Interview Question

Q: Javascript functions