Pine Labs interview question

basic puzzles,basic sql and test case scenarios