Pergunta de entrevista da empresa Sumtracker

What is N+1 query and how to optimize it