Answer:
Under the Mortgage clause of the policy, the insurance company will pay out the insurable interest it would have paid to Ted, to ABC bank.
Ted will now owe the insurance company whatever it was that they paid to the bank and they will be able to legally go after him to pay off that amount using any legal means necessary.