Thoughtworks interview question

Coding challenges from the start