The two men hoping to succeed Theresa May as Tory Party leader have been interviewed for a BBC One programme.