Arrangement in array

Try to arrange the squares in the right position of their color.