Expedition Technology interview question

How do you use PCA to segment an foreground from the background?