Open xcode and press run.
To run the tests, press CMD+U
There is no validation in the input and no explicit error handling, due to lack of time, but if the rules are followed, it will work as expected.
There are tests written for the full fanctionality of the logic, but no tests for the UI or the validation of the UI.