Update IsRainbow.cpp