Allsec interview question

Oops concepts, sql