Tech Mahindra Interview Question

solid principal , oops concept advanced C#