Add solution simplifyPath