Siemens interview question

Basic oops and c# concepts. Simple programs like prime number, odd even