Hastings Direct Interview Question

How did you approach the task given