Infosys Interview Question

Asked to write program based on arrays and asked SQL questions.