Ambiguous question starting with 'Was not having [something]?'

*Was not having friends in your childhood something you wanted?

Is this sentence grammatically correct and if so what does it mean ?


Solution 1:

It's a bit awkward, but perfectly grammatical, and if spoken correctly is perfectly understandable.

"Not having friends in your childhood" is the subject of the sentence, inverted with the verb "Was" to make it a question.