Pregunta de entrevista de Nissan

basics of oops concept. logical question