IBM Interview Question

Question on image converstion from Color to