Formulate an answer to this elaborate question: Which character in William Shakespeare's play "Hamlet" did Judi Dench play?
Ophelia