Pregunta de entrevista de Upstart

algorithm problem, probability problem and machine learning problem