In the first step, Users from Group A will be stored against "Created By" field for Lead. After lead is assigned to other user from group B, they will be stored as "Owner" of the lead.
Now you can go to Advanced find and search for records created by user from Group A and current owner is user from Group B. It will list all the lead satisfying the condition.