Quantiphi Interview Question

Q: How amazon's recommendation engine works?