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: [-512, 156, 810, 872, 564, 802, 286, -780, -29, -945, 416, 53, 37, 54, 777, 231, -187, 864, -777, 10, -544, 620, -827]

[777, -777]