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: [252, -707, 507, 228, 840, -290, -521, 617, -685, -477, -428, 579, -767, -215, -918, 2, 254, -375, 296, -997]

[252, -707, -767, 2]