C++ - Longest Suffix

Write and test a function that finds and returns through an output parameter the longest common suffix of two words (e.g., the longest common suffix of "procrastination" and "destination" is "stination," of "globally" and "internally" is "ally", and of "gloves" and "dove" is the empty string).Attachments