Shiva interview question

Basics fundamentals programming and oops