Good Evening DCLites ! Here we are on the refreshing Sunday. We hope you must have enjoyed the day and got yourself prepared for your next task.
After having hands on the pattern puzzles, its time to have some taste of strings again. Yeah, right we got a string problem for you this time.
Problem Statement :
You have to accept 2 strings. First string (String) must be 10 characters long and the second string (Sub-String) must be 5 characters long. Both the strings should contain a sequence of 0's and 1's.
You have to find whether the first string (String) contains the second string (Sub-String) or not. It should output 1, if first string (String) contains the second string (Sub-String) and 0 otherwise.
Sample :


