Bloomont interview question

Logical based questions from c# and sql