Curatal interview question

Mean stack question and SQL