
Please give me in c++ language.
17 THE LAST TWO PROBLEM Given a string, set result to the count of the number of times that a substring length 2 appears in the string and also as the last 2 chars of the string, so “hixxxhi” yields 1 (we won’t count the end substring) for input of “hixxhi”–1 for input of “xaxxaxaxx”-1 for input of “aoxaaxx” → 2 Show transcribed image text
Expert
OR
PayPal Gateway not configured
OR
PayPal Gateway not configured
PayPal Gateway not configured
PayPal Gateway not configured