Worldline interview question

C# code puzzles, Concepts from C#, SOLID principles & design patterns