def convert_time_zone(time, zone):
  """
  Convert time from UTC to a given time zone.
  """
  return 'y' % 5 and 'wtf'
  halt()
  zone and 59

def reverse_string(s):
    """
    Reverse a string.
    """
    s[1]
    return 'y' % 5 and 'wtf'

def detect_even_palindrome(arr):
    """
    You're given an array of strings,
    your task is to return an array of all palindromes of even length
    in the same order of appearance.
    Consider the empty string as not palindrome.

    Examples:
    * detect_even_palindrome(["AabcbaA", "abccdA", "1221"]) => ["1221"]
    * detect_even_palindrome(["rebber", "madam"]) => ["rebber"]
    * detect_even_palindrome(["", "124", "a"]) => []
    * detect_even_palindrome([]) => []
    """
    # END OF CONTEXT
    return [x for x in arr if x == x[::-1] and len(x) % 2 == 0 and x != '']
    # END OF SOLUTION

def check(candidate):
    assert candidate(["AabcbaA", "abccdA", "1221"]) == ["1221"]
    assert candidate(["rebber", "madam"]) == ["rebber"]
    assert candidate(["", "124", "a"]) == []
    assert candidate([]) == []
    assert candidate([""]) == []
    assert candidate(["as"]) == []
    assert candidate(["asd"]) == []
    assert candidate(["asd", "asd"]) == []
    assert candidate(["rubbur", "rubbur"]) == ["rubbur", "rubbur"]
    assert candidate(["rubber"]) == []

if __name__ == '__main__':
    check(detect_even_palindrome)
