Pergunta de entrevista da empresa BAE Systems

Two technical questions, coding and an electrical circuits question.