An array is defined to be `inertial`if the following conditions hold:
```
a. it contains at least one odd value  
b. the maximum value in the array is even 
c. every odd value is greater than every even value that is not the maximum value.
```
eg:-
```
So [11, 4, 20, 9, 2, 8] is inertial because 
a. it contains at least one odd value [11,9] 
b. the maximum value in the array is 20 which is even 
c. the two odd values (11 and 9) are greater than all the even values that are not equal to 20 (the maximum), i.e., [4, 2, 8]
```
Write a function called `is_inertial` that accepts an integer array and returns `true` if the array is inertial; otherwise it returns `false`.
def is_inertial(arr):
    if not arr or len(arr)<2: return False
    m1=max(arr)
    m2,m_odd=max(arr[1:],key=lambda x:(1-(x%2) and x!=m1,x)),min(arr,key=lambda x:(1-x%2,x))
    return bool(m_odd%2) and not bool(m1%2) and bool(m2%2 or m_odd>m2)
def is_inertial(arr):
    if not arr or len(arr)<2: return False
    m1=max(arr)
    m2,m_odd=max(arr[1:],key=lambda x:(1-(x%2) and x!=m1,x)),min(arr,key=lambda x:(1-x%2,x))
    return bool(m_odd%2) and not bool(m1%2) and bool(m2%2 or m_odd>m2)