Well, people, this one can be a pain to solve. There are a lot of little steps along the way, even if you know the concept, to trip up on. Yuck.
Fundamentally, you first need to understand that when you increase the powers of the numbers 3 or 4, they begin to show a pattern when it comes to their last digit
3 to the power 1, 2, 3 ,4 becomes 3, 9, 27, 81 ....something ending with 3... something ending with 9 and the pattern continues on and on.... Endless last digit blocks of 3, 9, 7, 1
4 to the power 1, 2, 3 becomes 4, 16, 64.... something ending with 6... and the pattern continues.... Endless last digit blocks of 4, 6
Once you know this the rest is just calm calculation.
What's the last digit of 3 to the power 444 ---> 444/4 leaves you with a remainder of 0 --- meaning you are at the 4th "house" on the block. That 4th house ends in a 1.
Similarly, to find the last digit of 4 to the power 333, just divide 333/2. You don't even have to solve it. Recognize it will not evenly divide and therefore it will have to be an Odd House ending in 4.
Now that we know both the last digits, we can simply add them before dividing by 5.
And guess what? 1 + 4 divided by 5 leaves a remainder of 0!