#C50. Case-Insensitive Substring Check
Case-Insensitive Substring Check
Case-Insensitive Substring Check
Given two strings s1 and s2, determine whether s2 is a substring of s1 in a case-insensitive manner. In other words, the function should return True if s2 appears anywhere within s1 regardless of letter casing, and False otherwise.
Formally, let \( s1 \) and \( s2 \) be two strings. The task is to check whether \( s2 \) is a substring of \( s1 \) when both strings are transformed to lowercase, i.e., \[ \text{result} = \text{True} \iff \text{lower}(s2) \subseteq \text{lower}(s1). \]
For example, if s1 is "HelloWorld" and s2 is "hello", then the output should be True.
inputFormat
The input consists of two lines:
- The first line contains the string s1.
- The second line contains the string s2.
outputFormat
Print a single line: True if s2 is a substring of s1 (case-insensitively), or False otherwise.
## sampleHelloWorld
hello
True
</p>