TATA ELXSI interview question

OOPs, Design patterns, some small programs