Scott Logic interview question

Sorting red and blue counters logic question