Pregunta de entrevista de LG Electronics

typical SQL questions and some coding