1. A word may or may not have synonyms. 2. There can be multiple synonyms for a single word. 3. All words only contain lowercase English letters.
1 2 5 bright pleasant happy bright today is a pleasant day
today is a bright day today is a happy day today is a pleasant day
In the first test case, we can see that “bright” is a synonym of “pleasant”. We can also see that “happy” is also a synonym of “bright”. This means that “bright”, “pleasant” and “happy” are all synonyms. Hence we can form three different sentences using these words one by one.