Pergunta de entrevista da empresa Analog Devices

Write code from scratch with no syntax mistakes?