Is this correct?

I do not understand what do these words mean.

Is the word "do" necessary...?

Or

I do not understand what these words mean?

Are both correct??

The second sentence is correct, except that it should end with a period, not a question mark.