Thoughtworks interview question

Choose one requirement and code.