Thoughtworks interview question

Functions: map(), reduce(), filter()