Bitdefender interview question

How can you exploit the memory of a program?