Here, the problemID must one value of {1, 2, 3, 4}, and the default value is 1.
My question is how to define such argument or options. For example, that is the argument like the second argument of build-in function Import[], whose second argument can only be selected in {Element, Data, List, CSV, … and so on}.
This is kind of tricky for options what generally happens is that the function throws a message when the options are not correct (out of bound). See for example how it is done in the built-in Plot function, you can see how the arguments are parsed et cetera: