Luxoft interview question

Intro