EA-Electronic interview question

How the algorithm behind PCA works?