Continental Interview Question

What is a segmentation fault, how would you avoid it?