TCG Digital interview question

Basic electrical