HiLabs interview question

solve PCA step by step