Thoughtworks Interview Question

Choose one requirement and code.