You have a list of numbers, and you need to check if any number appears three times in a row. If you find such a group of numbers, you should say 'Yes', otherwise say 'No'.
Input: [1, 4, 4, 4, 2]
[1, 4, 4, 4, 2]
Output: Yes
Yes
Input: [2, 4, 4, 2, 2, 4]
[2, 4, 4, 2, 2, 4]
Output: No
No