Pergunta de entrevista da empresa Folio3

Questions asked were general related to oop,ds,db. Asked to solve 3 problems on paper and an sql query. Shown code for upcasting and downcasting and asked which is one is which. and other linkedlist, array and basic ds stuff