Costa Group interview question

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