Lower case constraints

Here I have to write the constraints for the - also?

here constraint is that you have to take input any character

okay thanks i thought the constraints is for the hyfen (-) also