Ellipse Solutions interview question

They were testing basic programming skills/algorithmic knowledge/logics.