Code:

outer = 0, inner = 0, nums[0] = 32, nums[0] = 32,
outer = 0, inner = 1, nums[1] = 93, nums[0] = 32,
outer = 0, inner = 2, nums[2] = 2, nums[0] = 32, swapping,
outer = 0, inner = 3, nums[3] = 74, nums[0] = 2,
outer = 0, inner = 4, nums[4] = 89, nums[0] = 2,
outer = 0, inner = 5, nums[5] = 73, nums[0] = 2,
outer = 0, inner = 6, nums[6] = 80, nums[0] = 2,
outer = 0, inner = 7, nums[7] = 80, nums[0] = 2,
outer = 0, inner = 8, nums[8] = 41, nums[0] = 2,
outer = 0, inner = 9, nums[9] = 95, nums[0] = 2,
outer = 1, inner = 1, nums[1] = 93, nums[1] = 93,
outer = 1, inner = 2, nums[2] = 32, nums[1] = 93, swapping,
outer = 1, inner = 3, nums[3] = 74, nums[1] = 32,
outer = 1, inner = 4, nums[4] = 89, nums[1] = 32,
outer = 1, inner = 5, nums[5] = 73, nums[1] = 32,
outer = 1, inner = 6, nums[6] = 80, nums[1] = 32,
outer = 1, inner = 7, nums[7] = 80, nums[1] = 32,
outer = 1, inner = 8, nums[8] = 41, nums[1] = 32,
outer = 1, inner = 9, nums[9] = 95, nums[1] = 32,
outer = 2, inner = 2, nums[2] = 93, nums[2] = 93,
outer = 2, inner = 3, nums[3] = 74, nums[2] = 93, swapping,
outer = 2, inner = 4, nums[4] = 89, nums[2] = 74,
outer = 2, inner = 5, nums[5] = 73, nums[2] = 74, swapping,
outer = 2, inner = 6, nums[6] = 80, nums[2] = 73,
outer = 2, inner = 7, nums[7] = 80, nums[2] = 73,
outer = 2, inner = 8, nums[8] = 41, nums[2] = 73, swapping,
outer = 2, inner = 9, nums[9] = 95, nums[2] = 41,
outer = 3, inner = 3, nums[3] = 93, nums[3] = 93,
outer = 3, inner = 4, nums[4] = 89, nums[3] = 93, swapping,
outer = 3, inner = 5, nums[5] = 74, nums[3] = 89, swapping,
outer = 3, inner = 6, nums[6] = 80, nums[3] = 74,
outer = 3, inner = 7, nums[7] = 80, nums[3] = 74,
outer = 3, inner = 8, nums[8] = 73, nums[3] = 74, swapping,
outer = 3, inner = 9, nums[9] = 95, nums[3] = 73,
outer = 4, inner = 4, nums[4] = 93, nums[4] = 93,
outer = 4, inner = 5, nums[5] = 89, nums[4] = 93, swapping,
outer = 4, inner = 6, nums[6] = 80, nums[4] = 89, swapping,
outer = 4, inner = 7, nums[7] = 80, nums[4] = 80,
outer = 4, inner = 8, nums[8] = 74, nums[4] = 80, swapping,
outer = 4, inner = 9, nums[9] = 95, nums[4] = 74,
outer = 5, inner = 5, nums[5] = 93, nums[5] = 93,
outer = 5, inner = 6, nums[6] = 89, nums[5] = 93, swapping,
outer = 5, inner = 7, nums[7] = 80, nums[5] = 89, swapping,
outer = 5, inner = 8, nums[8] = 80, nums[5] = 80,
outer = 5, inner = 9, nums[9] = 95, nums[5] = 80,
outer = 6, inner = 6, nums[6] = 93, nums[6] = 93,
outer = 6, inner = 7, nums[7] = 89, nums[6] = 93, swapping,
outer = 6, inner = 8, nums[8] = 80, nums[6] = 89, swapping,
outer = 6, inner = 9, nums[9] = 95, nums[6] = 80,
outer = 7, inner = 7, nums[7] = 93, nums[7] = 93,
outer = 7, inner = 8, nums[8] = 89, nums[7] = 93, swapping,
outer = 7, inner = 9, nums[9] = 95, nums[7] = 89,
outer = 8, inner = 8, nums[8] = 93, nums[8] = 93,
outer = 8, inner = 9, nums[9] = 95, nums[8] = 93,