IBM interview question

Question on image converstion from Color to