Google interview question

Personality survey and one code problem