Barclays Interview Question

How did you approach the coding problems?