Impulse Space interview question

How does a thermocouple work?