CMC Electronics interview question

Please complete this assignment for us.