eGeneration interview question

Analytical puzzle pseudo code etc