Pergunta de entrevista da empresa Virtusa

write class inheritance code reverse array without another array