Enums - help with this exercise
I need help with this exercise, I have done it with the Switch statement, however something seems to be wrong or something is missing. The exercise mentions the following: A racing video game has 3 levels of difficulty: Easy, Medium, and Hard. Each difficulty level is assigned a maximum time to complete the track: the higher the difficulty, the shorter the time. The program you are given defines the Player class and the Difficulty enumeration, and creates 3 Player objects with different difficulties as parameters for the constructor. Complete the Player constructor, which takes the enumeration as a parameter to verify the time of each difficulty option and emits the corresponding message: Easy => "You have 3 minutes 45 seconds" Medium => "You have 3 minutes 20 seconds" Hard => "You have 3 minutes" Use a switch statement to check each option in the enum and execute the output. This is my code: https://code.sololearn.com/czIpdSXDNxXG/?ref=app