solve "Partition List" and "Decode Ways"