If
\[
A=\begin{bmatrix}2 & 3\\3 & 5\end{bmatrix},
\]
then find the value of
\[
\left|A^{2025}-3A^{2024}+A^{2023}\right|.
\]
Show Hint
For determinant-based matrix problems:
Reduce high powers using Cayley–Hamilton theorem
Factor expressions before applying determinant properties
If \(|A|=1\), then \(|A^n|=1\) for all \(n\)