Amazon interview question

Decode algorithm, sort algorithm, word processing algorithm.