Pergunta de entrevista da empresa Tata Consultancy Services

asked to write a basic code on array and one sql query using where condition