Pivot string assignment algorithm

// Initialize all of your variables to be empty strings: originalString, pivotString, beginning, ending (or whatever you want to call them)

// Prompt the user to enter a string

// Prompt the user to enter a pivotString

// Find the index of the pivotString in the original string

// if the pivotString is not found, print a message to say not found

// otherwise,

// String beginning = a substring of the original string from the first character up to the position of the pivotString

// String ending = a substring of the original string from position + length of pivotString to the end of the original string (remember, you can use substring with only 1 argument and it will take everything from that position up to the end of the string

// Print the output with ending + pivotString + beginning