ValueAdd (India) interview question

tough