Amazon interview question

Math behind Principal Component Analysis