Hastings Direct interview question

How did you approach the task given