DXC Technology Interview Question

Question on oops and C#