TCS Interview Question

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