IBM interview question

Explain how memory management works and compare existing algorithms