Question d’entretien chez Neptune Ubicom

java oops implementation question from hacker rank