This sounds like homework. Hence, it should be in your notes and/orbook. Did you try Google? Incidentally, this sort is also called aradix sort.