Pergunta de entrevista da empresa Infosys

Distinct query in SQL was easy