Pregunta de entrevista de Meta

Basic sql questions and some probability concepts.