EA-Electronic Interview Question

How the algorithm behind PCA works?