LED matrix 5 x 5 using arduino and breadboard UPDATED

Are you going to post the updated diagram?

I don't think so. It is more likely that you did not understand. That is why your professor has tasked you to create the circuit, so that he/she can discover if you have understood or not.