Apxor Interview Question

arrays problems ,trees,sql query retrival