Question from the Java test

Return a value in a switch expression in Java 17