Execute Cancellable Function With Delay(LeetCode 2715):

Problem