AutoAlert interview question

Write a task based function to...