AC solution simplify path 48ms