Appinventiv Interview Question

Extract data without using array from the database.