Update contact owner to match account owner in CRM

Is there a way to mass update, or run an automated workflow in the CRM to change contact ownership to match the parent account ownership? It seems the only way to do it is to write a function or maybe use Zoho Flow (or an API call?), but I am not 100% proficient in Deluge/writing scripts so I am a bit lost.

For reference, we have about 1000 contacts that need to be given back to their rightful owners after they were mistakenly transferred to a new salesperson. So aside from not having the time to go into each account and manually change their contacts’ ownership, I’d love to set it up so that moving forward the contact owner will always match the parent account owner.