Cyntexa Interview Question

Coding on paper basically code logic test