Thoughtworks Interview Question

Pairing interview : consisted of a problem to solve and make the code more efficient.