Teradyne interview question

Basic circuits and coding