It would have been nice if you had provided some datasheet.
Most modern microcontrollers have some or all pins being 5V tolerant even if they are being supplied from a 3.3V source. What this means, is that you can send 5V into the GPIO and it will be ok.
Sometimes you just have to spend the extra work to find the answer (and it's not that hard either).
First thing you need is the datasheet.


Great now I know what the microcontroller is. But does it have 5V tolerant IO ? I don't know. Lets find the datasheet.

First page (bottom left corner).

So almost all are 5V tolerant. Which ones do you need ? I don't know. You can look it up yourself now.
Hopefully you can see, that a bit of Google goes a long way. Even if you search wrong, if you have a good sense of what you would like to do, reading through the pages, can sometimes direct you in the right direct.
Derp
If I had read slower, I would have seen that the second screenshot was the same summary (although not complete datasheet), so I could have figured out that it was 5V tolerant by the second picture. I would still need the full datasheet to find out which pins are 5V tolerant and which ones aren't.