Perceptual Grayscale Conversion Using Luminosity Weights - Coding problem | OneNoughtOne