<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def invert(interval):
 """Invert an interval. Example: ['E', 'C'] """

    interval.reverse()
    res = list(interval)
    interval.reverse()
    return res