Pergunta de entrevista da empresa Costa Group

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