Synechron Interview Question

I had two practical questions where I had to write the code. Agile questions. SQL