/* Create a function that takes two integers and returns true if a number * repeats three times in a row at any place in num1 * AND that same number repeats two times in a row in num2. */ bool trouble(int num1, int num2) { // convert the integers to strings to access each number std::string num1string = std::to_string (num1); std::string num2string = std::to_string (num2); std::vector sVal; for(int i = 0;i<9;i++){ char c = i + '0'; int counter = 0; // when the counter hits 3, it will store the value into sVal for(int j = 0;j