we define string s infinite wraparound string abcdefghijklmnopqrstuvwxyz s look like thiszabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdGiven stre p return number unique nonempty substring p present s example 1input p aoutput 1explanation only substre p sExample 2input p cacoutput 2explanation there substring c p sExample 3input p zaboutput 6explanation there substring z b za ab zab p s Constraints1 plength 105p consist lowercase english letter