DBS Bank interview question

3 SQL Question and 3 Programming Question