Pregunta de entrevista de IBM

Question on image converstion from Color to