Republic Indemnity interview question

What does an Underwriter do?