RapidOps interview question

Inheritance, Polymorphism,Star Pattern,Binary Search and some Sql question