Quantiphi interview question

Q: How amazon's recommendation engine works?