Barings Interview Question

How would you unit test your solution?