Billion Auto interview question

What is an alternator? And how does it work?