KPIT Technologies interview question

Difficult questions about OOPS concepts