Intel Corporation interview question

Design almost the same algorithm in software.