Rotations in the plane by an angle $\theta$ can be calculated using the rotation matrix
$$\begin{bmatrix}\cos \theta& -\sin \theta \\ \sin \theta& \cos\theta\end{bmatrix}.$$
So in the case of a rotation of $\theta=90^\circ$ this matrix is
$$\begin{bmatrix}0& -1 \\ 1& 0\end{bmatrix}.$$
So the new corners of your rectangle are
$$ \begin{bmatrix}0& -1 \\ 1& 0\end{bmatrix} \begin{bmatrix}3 \\ 5\end{bmatrix} = \begin{bmatrix}-5\\ 3\end{bmatrix},
\qquad\begin{bmatrix}0& -1 \\ 1& 0\end{bmatrix} \begin{bmatrix}5 \\ 3\end{bmatrix} = \begin{bmatrix}-3\\ 5\end{bmatrix}, $$
$$ \begin{bmatrix}0& -1 \\ 1& 0\end{bmatrix} \begin{bmatrix}3 \\ 3\end{bmatrix} = \begin{bmatrix}-3\\ 3\end{bmatrix},
\qquad\begin{bmatrix}0& -1 \\ 1& 0\end{bmatrix} \begin{bmatrix}5 \\ 5\end{bmatrix} = \begin{bmatrix}-5\\ 5\end{bmatrix}. $$
So the cooardinate of the top left corner is $(-5,5)$ and the coordinate of the bottom right corner is $(-3,3)$
Keep in mind: Due to the rotation of the rectangle itself, the new top left corner is not the image of the old top left coordinate.