Westlake Services interview question

asked for sql queries and LC easy