Question from the Swift test

How to use the `switch` statement in Swift