Sakshi interview question

OOPs and data structure questions with some basic codes