IFDS Group interview question

Desribe an algorithm in any programming languague.