left 42 java solution