Is this legal?

So I was applying for some jobs today and this was one of the questions it asked me. This fant be legal can it?