3Pillar interview question

JavaScript oops concepts