Northrop Grumman interview question

How would you debug a "low memory" error in a program you wrote? What could cause this?