Enosis Solution interview question

Regarding basic programing and DS