Thoughtworks Interview Question

Convoluted lists