New Work SE interview question

It was a take home assignment.