Tripearltech interview question

1 pattern based dsa question 4 sql queries