Pergunta de entrevista da empresa Hitachi Vantara

Interviewer asked 2 coding questions, and basic oops concept