vAuto interview question

nothing difficult, basic algorithm questions.