How to Identify the Subfolder With the Most Recently Written File?

A post was split to a new topic: How to Find the Most Recent File of a Given Type in a Given Directory Tree