Move files from folders called "Rejected"

I need your help. Maybe it is possible, but I did not find a solution.
I have a folderstructure a bit like:
TESTFOLDER
|- Folder 1
| |-Rejected
|
|- Folder 23
| |-Rejected
|
|- Folder XY
| |-Folder ZZ
| |-Rejected
|
|- Rejected
I need a rule on TESTFOLDER that will move all files that are in folders called Rejected. No file in any other folder should be moved.
The folderstructure inside TESTFOLDER changes from time to time so I need to have a rule that is independent from the structure inside.
Thanks in advance for any help!
I have a folderstructure a bit like:
TESTFOLDER
|- Folder 1
| |-Rejected
|
|- Folder 23
| |-Rejected
|
|- Folder XY
| |-Folder ZZ
| |-Rejected
|
|- Rejected
I need a rule on TESTFOLDER that will move all files that are in folders called Rejected. No file in any other folder should be moved.
The folderstructure inside TESTFOLDER changes from time to time so I need to have a rule that is independent from the structure inside.
Thanks in advance for any help!