EY interview question

Very Difficult SQL Online Test