update word ladder ii solution