P.C. Richard & Son Interview Question

Debug Javascript code and SQL