This is the question. I have no idea how to approach this whatsoever. So there is no code which I tried.
A function is given with 4 parameters
- The RGB value of the first colour as an integer Eg: red = 220 green = 020 blue = 060 is given as 220020060
- The RGB value of the second colour is also an integer
- Number of equally distanced waypoints between the range of the two colours (non-negative integer)
- the nth colour of out of that waypoints
If the parameters are (220020060, 189252201, 3, 1) The answer should be 212078095