* @brief Function that checks if the string passed in param can be * segmented from position 'pos', and then correctly go on to segment the * rest of the string correctly as well to reach a solution * * @param s the complete string to be segmented * @param strSet unordered set of string, that is to be used as the * reference dictionary * @param pos the index value at which we will segment s