#Css color codes 3 digit code
Your program or function must accept as input a six digit hexadecimal colour code prepended with # and output a three digit colour code prepended with #.
In CSS, colours can be specified by a "hex triplet" - a three byte (six digit) hexadecimal number where each byte represents the red, green, or blue components of the colour.