Smoothstack Interview Question

basic javascript questions and sql