Xorosoft interview question

1. oops 2. sql queries 3. array code