A colourless hydrocarbon with a sweet smell undergoes substitution reaction. The hydrocarbon is likely to…