Learn/C++/C++ Beginner/Functions/Checkpoint: Functions/Text Stats FunctionsText Stats FunctionsChallenge on lesson: Checkpoint: FunctionsInstructionsCodeOutputImplement three functions over a sentence: word_count(text) (space-separated words, non-empty), longest_word(text) (first longest on ties), and contains_digit(text) (true if any character is a digit).Difficulty: beginnerSubmitPress Submit to check your solution.Back to lesson: Checkpoint: Functions