Pine Labs Interview Question

basic puzzles,basic sql and test case scenarios