Pregunta de entrevista de Google

Question on trees and question on project and sql queries