Definition: 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.
Input: [884, 594, 595, 244, -705, 171, -628, 125, 581, -43, -291, 933, 237, -505, -89, 876, 840, -855, -884, 989, -349, 496, 639, 784, -437]

[595, 171, -505, 989]