Aspire Systems interview question

asked to write algorithm in any language