Pergunta de entrevista da empresa TrialPay

If you had a file system, how would you program the logic/ algorithm to find a certain file when you have multiple directories and the contents of all the files are unknown.