Schneider Electric interview question

Coding problems based on preferred language.