[ch3][StacksAndQueues] Committing JAVA solutions for Problem 1.