Pergunta de entrevista da empresa Fannie Mae

How to model the prepayment risk and default risk on a bond using calls and puts?