Authentise interview question

Worked through coding examples with the CTO