WD interview question

Get input from users and categorize/sort input