Words with Letters prolog