Pregunta de entrevista de Axtria

Few SQL based question.