Start hiring job-fit candidates using this assessmentGET A DEMO
"Our recruitment team loves Interview Mocha especially for their skill assessments, simulators, and friendly support. Since using Interview Mocha, we interview only relevant candidates, and this has reduced our time to hire. Recruitment is no longer an hassle for us."
One day going through some old books, our hacker, Little Stuart finds something scribbled on the corner of a page.
Now he believes that the scribbled text is more mysterious than it originally looks, so he decides to find every occurrence of all the permutations of the scribbled text in the entire book. Since this is a huge task, Little Stuart needs your help, he needs you to only figure out if any permutation of the scribbled text exists in the given text string, so he can save time and analyze only those text strings where a valid permutation is present.
The first line contains scribbled text and
Next line contains a text string.
All characters in both the strings are in lowercase only [a-z].
Print YES or NO depending on whether any permutation of the pattern exists in the text string.
use -- Scribbled text
question -- Text string
Good News! You can customize this test as per your requirement
Choose and add questions from Interview Mocha question libraries
Add your own set of questions
Customize test settings like duration, number of questions, passing score, web proctoring and much more
Mail us at email@example.com to create a custom test
Looking for a tailor-made test, to suit your assessment needs?Get in touch
Global companies using Mocha assessments
How Mocha assessments are brewed
Speed up your IT recruitment with Interview Mocha
- 500+ IT skill tests
- 20+ coding languages
- 50+ domain knowledge tests
- 100+ digital 2.0 skill tests
- Customer focus aptitude tests
- Enterprise ready features & more...