Syqe Medical interview question

Explain how the DFT algorithm works