VK interview question

What's the difference between forward and deffered algorithms of rendering?