Tribro interview question

OOPs concepts, SQL querries