#303. endOther

endOther

Background

Description

Given two strings, return true if either of the strings appears at the very end of the other string, ignoring upper/lower case differences (in other words, the computation should not be "case sensitive"). Note: str.toLowerCase() returns the lowercase version of a string.

Format

Input

Output

Samples

Hiabc" "abc
true
AbC" "HiaBc
true
abc" "abXabc
true

Limitation

1s, 1024KiB for each test case.