Frage im Vorstellungsgespräch bei Palantir Technologies

A coding question based on recommendation system problems