Entrata India interview question

SQL easy question and Dsa Easy Question