Question d’entretien chez Microsoft

How would you write an algorithm that determines whether there are any duplicate files within the same folder?