Amtrak Interview Question

How do you work with different functions?