Pergunta de entrevista da empresa Microsoft

How to build a system to sync files in two folders?