My problem solving for JavaRush