NCN Technology interview question

Basic electrical hardware and C