Generally you need a theme customization to make a theme look like this if it already doesn't.
Hi @Ajay08 That depends wildly on theme being used and how products are setup.
Some theme will let you use buttons/swatches that you could then style to look like that by having the exact text needed within the variants title by putting all the words in the variants option value.
But you will have trouble controlling line breaks without html controlling the display of that text.
If you need this customization then contact me directly by mail for services. firstname.lastname@example.org Please always provide context, examples: store url, theme name, post url(s) , or any further detail.