AVASOFT interview question

Basic Oops concepts and loops