Accept an input with 10 letters If the letter W contains five or more characters

Accept an input with 10 letters If the letter W contains five or more characters, then output "OK" and "NG" if the number is less than five. (Note: The 10 letters contain space between each other.

The letter contained in the 10 letters is only S or W)

Example (1) If the input value is W W W W W S W W S W, the output is 5 or more, so the output is OK.

Example (2) If the input value is W W S S S W S W S S, if the input value is less than 5, then the output is NG.

0   0
Hein Htet
profile Meerak 25th May 2026

Explore top [clothing brands for women in Pakistan](https://meerak.pk/) offering elegant eastern wear, casual outfits, and modern styles. Find comfortable, fashionable designs perfect for every occasion.

profile Miss 25th May 2026

Shop from leading online cosmetics brands in Pakistan offering original makeup, skincare, and beauty products with convenient delivery and trusted quality.

profile Adoro 25th May 2026

Explore the most popular selection of women shoes online on the Adoro! Our online store has a large selection of stylish shoes suitable for every event, such as relaxed flats to trendy heels. Get shoes with unique styles and unbelievable pricing now and improve your shoe matches.

profile Servis 23rd May 2026

Stay ahead of the fashion curve with Servis' range of women sneakers. From casual to athletic, find the perfect pair to match your style with a variety of colors and designs to choose from. Enjoy unbeatable offers and discounts on your favorite sneakers today!

profile Shop 22nd May 2026

Shop the latest collection of slippers for ladies online at ECS. Discover the newest collection of stylish and trendy women's slippers online at the best prices. Find the perfect addition to your wardrobe.

profile Sneha 24th April 2026

After a long day, everyone looks for a way to relax and feel at ease. Delhi Escorts Service provides a smooth and comfortable experience for those who want to unwind. The process is simple and easy to manage, so you don’t have to worry about anything.
Lutyens Escorts Service || Escorts Service Maharani Bagh || Escorts Service in Malviya Nagar || Bengali Market Escorts || Escorts in Mandi House ||

profile Sneha 22nd April 2026

Sometimes, a small break from your routine can make a big difference. Escort Anand Vihar options provide a simple way to enjoy your time in a relaxed setting. The experience feels smooth and easy to manage. You can spend your time however you like, creating moments that feel natural and enjoyable. It’s about taking a break and feeling refreshed.

profile yasmin 15th April 2026

Spending time with a Delhi Escort can make your day feel lighter and more enjoyable. She is friendly, confident, and easy to talk with. Every moment feels smooth and natural. You can relax and enjoy your time without any worry.

profile mohit 7th April 2026

MedMeds Livuxis is a good product that works well as a best supplement for liver repair . Although I had some issues with my liver, after using this product regularly, my reports began to improve. It is easy to take and is made of herbal products, which is a big advantage. It is a good product that can be recommended to anyone who wants a natural solution for repairing their liver.

profile Emaan 1st April 2026

Find the newest lawn suit design trends with beautiful prints, delicate embroidery, and modern cuts. Perfect for everyday wear and special occasions while staying comfortable in warm weather.

profile Miss 31st March 2026

Find the best foundation in Pakistan for flawless makeup results. From lightweight to full coverage, choose formulas that enhance your skin tone and provide a smooth finish.

profile catie 7th February 2026

Clean, simple, and efficient — kind of like counting blocks in Eaglercraft, just with letters instead of cubes

profile emma 7th January 2026

To solve this problem, you can use a simple piece of code to count the number of 'W' characters in the input string.  mr flip

profile fnf 7th January 2026

You can experience FNF completely free in your web browser without downloading or installing anything heavy on your computer. This convenience and lightweight design make the game easily accessible to millions of players worldwide, regardless of computer specifications.
 

profile marget 4th January 2026

In practical coding, you’d validate length, iterate through characters, and tally Ws. The conditional could unlock features—perhaps displaying a Corsac-themed badge, symbolizing adaptability and efficiency, much like the fox navigates harsh terrains. This blends input validation with thematic rewards, making dry logic engaging through metaphoric layers.

Please rotate your device

We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site