Pregunta de entrevista de Sumtracker

What is N+1 query and how to optimize it