solve digging-a-canal