Exam problem

Construct a simple app with a single view that implements a simple guessing game. When the app starts the view should look like this:

When the user enters a guess in the text field and clicks the Check button the app will give them feedback on their guess.

Play continues until the player either guesses the secret number or runs out of guesses.

Pressing the Start Over button resets the game back to start with a new secret number.

Helpful hint

To generate a random integer between 1 and 100 in Swift use the code

Int.random(in:1..<100)