Thoughtworks interview question

Notebook with lots of codes.