0 1 2 3 4 0 1 2 3 4 java code example Example: 1 2 1 3 2 1 4 3 2 1 3 2 1 2 1 1 java 1 2 1 3 2 1 4 3 2 1 5 4 3 2 1