Barclays Interview Question

scenarios based Questions, how did u connect db in ur script, write code?