Pregunta de entrevista de Palantir Technologies

A coding question based on recommendation system problems