You are given a (potentially large) list of words.Some words are compound words, meaning they are composed of two or more words that also exist in the same list. Example word list:[rockstar, rock, star, rocks, tar, stars, rockstars, super, highway, high, way, superhighway] Goal:Identify all combinations where a word can be decomposed into two or…