Given a set numbers, to get the largest possible standard deviation, we use the numbers at the extreme.
Therefore, if we are to choose 4 numbers from 22 to 9,595 such that we have the largest possible standard deviation, the four numbers are 22, 22, 9,595 and 9,595.