TCS interview question

my introduction, 1 dsa easy problem, 1 sql easy problem