Is there a way to mass update the Account owner based on the contact owner?

Is there a way to mass update the Account owner based on the contact owner?

Thanks