JPMorganChase interview question

What is defensive programming and why would you use it?