Move each record in the left array to the appropriate bin in the right array based on the msgArray[qchoice] digit.
Just take each record on the left one at a time and move it to the proper bin on the right.
These are logically 3-digit numbers. If the value happens to be less than 100, then you should think of the missing digits as being 0.
Be sure that you are looking at the correct digit that the question asks for.