Nested loop pattern in java. If I input 4 the pattern should be like this
16 15 14 13 9 10 11 12 8 7 6 5 1 2 3 4
then if I input 3 the pattern