References: https://procoder.live/learn/ https://stackoverflow.com/questions/4152931/javascript-inheritance-call-super-constructor-or-use-prototype-chain https://www.thepoorcoder.com/hackerrank-java-stack-solution/