Slalom Interview Question

How would you test this input component?