Domanda di colloquio di Costa Group

What is the N+1 query problem? How can it be solved?