Analog Devices interview question

Algorithm related questions