Premium problem44. Is the Index Sorted?

Medium Locked

Check whether the MultiIndex of Series s is sorted (monotonically increasing), a property needed for correct MultiIndex slicing. Return the boolean result.

Input

A  0     0
   1     1
   2     2
   3     3
   4     4
        ..
C  5    25
   6    26
   7    27
   8    28
   9    29
Length: 30, dtype: int64

Output

True

Premium problem

This one's part of Premium. Unlock the full Pandas track plus every other premium problem on the site.

Implement solve(...)