Colorz interview question

How would you do to tackled this subject