Primathon interview question

basic questions based on oops