HCLTech interview question

object oriented JavaScript