Rofous interview question

SQL and C#