HP Inc. interview question

How does a microphone work.