Bloomont Interview Question

Logical based questions from c# and sql