Silicon Image Interview Question

random, some basic coding.