MOSAIC interview question

Parenthesis check, sql queries on coderpad