Pregunta de entrevista de Walmart Global Tech

SQL problems, about easy-medium difficulty.