• HackerRank AdminChallenge Author
    + 1 comment

    You should call the constructor of the parent class from the child class, i.e., the Square class constructor should call super(s, s).

    You can check the editorial.