This is a numerical-answer question. The correct answer is shown below.
[Solution by Dr. Abubacker] $2023=35\times57+28$, so $2023\equiv28\pmod{35}$. Modulo $7$: $2023\equiv0$, so the remainder is a multiple of $7$. Modulo $5$: $2023\equiv3$ and $3^{2023}=3^{4\cdot505+3}\equiv3^3=27\equiv2$. We need $r\equiv0\pmod7$ and $r\equiv2\pmod5$ with $0\le r<35$: $r=7$. Answer: 7.