Given array is: 120 , 231 , 417 , 343 , 542 , 998 , 675 , 196.
Since radix sort starts sorting by the LSB and iteratively goes towards the MSB.
So, after one pass the array will look like this: 120 , 231 , 542 , 343 , 675 , 196 , 417 , 998.
Now in the second pass, we have to take care of the ties(when two digits are same) as there are digits which are same.
So, after second pass the array will look like this: 417 , 120 , 231 , 542 , 343 , 675 , 196 , 998.
Now we have to apply bubble sort on the entire array. So each adjacent elements a[i] and a[j] will be swapped if a[j] > a[i] and j > i.
So, the array will look like this: 120 , 231 , 417 , 343 , 542 , 196 , 675 , 998.
Hence option D.