Volvo Cars Interview Question

just some basic easy algorithm questions.