Whenever you're ready, walk me through how you'd approach this.
Explain how you would traverse directories in Unix and categorize files as you go.