Change into question: She was the only one who knew the solution.

Change into question: She was the only one who knew the solution.

Explanation

The original sentence is in past tense ("was"), so the correct question form starts with "Was."

The subject and verb are correctly inverted to form the question.