Gertrude was the Queen of Denmark, the widow of the former king and Hamlet’s…