You are given two liquids A and B. One is a compound or a pure substance and the other is a mixture (solution). How will you select the compound?
The liquid compound would boil off at a constant temperature whereas the liquid mixture (solution) would boil off at two different temperatures. Thus the liquid which boils throughout at a constant temperature is a compound or pure substance.