Asked inDeltax,QA

Shilpa is interested in only red and yellow roses. She is arranging flowers in some fashion to be presented at her friend's birthday. Her friend loves only red and yellow roses(but mostly red ones). The flowers can be arranged only in the following three ways: 1) Red 2) Red, Yellow 3) Red, Yellow, Yellow This sequence may be repeated endlessly but if it goes somewhere wrong then she won't go to the party. As she is geƫng late for the party, Shilpa gives this job to her flower vendor giving all the instrucƟons. However, the vendor is suffering from alzheimer disease and forgets all the arrangement and the required color of the roses (he just remembers that only roses were required). Due to lack of memory, vendor decides to create different sequences of roses so that Shilpa can choose the appropriate one. Since Shilpa is short of Ɵme, help her in making correct choice from the given sequence of roses. Inputs Input contains a sequence of characters represenƟng color for the roses for example, 'Y' for yellow roses, 'R' for red roses, 'W' for white roses and so on... Output Print “YES” if the sequence is valid and “NO” if it is invalid QuesƟon: Tell us 5 input combinaƟons that you will try and what is the expected outcome for those combinaƟons

Be the first one to answer
Add answer anonymously...
Deltax QA Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter