Thoughtworks Interview Question

Problem solving