In this task you will be given a list of integers. You should only return an integer if the first digit is the same as the last digit in the number. If an integer has a single digit, then it should be returned. If there are no integers that start and end with the same digit then an empty list ("[]") should be returned.
[87, -647, 562, -286, -478, -303, 211, -366, -594, -325, 106, -300, 850, 997, 514, -876, 446, -389, -284, 962, -615, -593, 406, 511]