Painter Problem

why none of the test case is passing…for algo++ sorting challege(Painter Problem)