IIT interview question

How would you interface a colour sensor