CoachHub interview question

How would you refactor this code to make it more readable and maintainable?