Accenture Interview Question

sql query