Pregunta de entrevista de PTC

DSA,Oops(Mostly in Java) Some SQL Queries Puzzles