adding new challenge solution: Stack Implementation in Java