Persistent Systems interview question

Coding questions - if-else statement, Array, string etc.