Zovio interview question

Write a function to perform a specific task.