Pregunta de entrevista de ByteDance

A coding problem and basic ML knowledge