Solve these test cases

what will be the answers of this

  1. abcdef
    abcdef?*

  2. abcd
    abcd?

  3. abcd
    abcd*

  4. abcd
    ?

  5. ab d
    a*?

  6. abcde

    • ???*

Hey @Himanshu-Jhawar-2273952536067590
Q 1. abcdef
abcdef?*
output : 0
abcd
abcd?
output : 0
abcd
abcd*
output : 1
abcd ?
output : 0
test case 5 and 6 space are not allowed

why 6th testcase is not allowed

abcde * ???*
because space h