Ziffity Interview Question

Tech question and program from c# and sql