INNOVAX interview question

Logic for string reverse , arrays , sql subqueries