EXL Service interview question

How do you calculate a bond yield?