Cognizant interview question

introduction, oops concepts, no coding , easy sql queries,1 puzzle