RGB Spectrum interview question

Multi threading, Basic C and c++