Degree of unsaturation (DOU) = Total number of rings or total \\pi bonds = Number of carbon atoms - Number of monovalent atoms (single bonded atoms)/2 + Number of trivalent atoms (triple bonded atoms)/2 + 1= 25 - 16/2 + 0 + 1= 18So, Degree of Unsaturation of Q is 18.