Set QueueId on Owner Change if new owner in other Queue

To List,

I’m thinking of writing a scrip that would automatically change the
QueueID of a ticket if it was taken/stolen by a user of a different
queue. Has anyone ever done anything like this? Does anyone have any
ideas? Thanks.

Kenn
LBNL