java-scripts-solving-problem