Thoughtworks Interview Question

Q: Tell us how would you approach this problem. (Problem is shared 24 hours prior)