Cyntexa interview question

Coding on paper basically code logic test