Solve in c++ :Write a function that takes a character array and print word with all letter capitalized

Write a function that takes a character array (sequence of words (alphabets only)) as input, searches for the word with all the letters in upper case and displays that word. Use functions in your program appropriately.

Example:

Input: This Course ReQuires a lot of HardWork and DEDICATION.

Output: DEDICATION