Write a very efficient C++17 function to convert RGB to HSV. 

Test the function with the following parameters:

The function with input:
int r = 168;
int g = 104;
int b = 112;
should give this output:
double h = 353;
double s = 38.1;
double v = 65.9;

The function with input:
int r = 120;
int g = 40;
int b = 48;
should give this output:
double h = 354;
double s = 66.7;
double v = 47.1;

The function with input:
int r = 128;
int g = 120;
int b = 136;
should give this output:
double h = 270;
double s = 11.8;
double v = 53.3;

The function with input:
int r = 248;
int g = 248;
int b = 176;
should give this output:
double h = 60;
double s = 29.0;
double v = 97.3;
 Use some words in all caps in your response, but those all-caps words should appear at most 16 times.
user