Question 105
A four-digit integer in base 10 is friendly if its digits are four consecutive digits in any order. A four-digit integer is shy if there exist two adjacent digits in its representation that differ by 1. Compute the number of four-digit integers that are both friendly and shy.