Pregunta de entrevista de Google

Personality survey and one code problem