c# logical programs for interview