MindsDB interview question

Explain how and why PCA works.