Check string str2 is superscript of string str1. Sample input: Input Output str1=xstr2=x^x Yes str1=xstr2=x^2 No
Check string str2 is superscript of string str1.
Sample input:
| Input | Output |
| str1=xstr2=x^x | Yes |
| str1=xstr2=x^2 | No |
From the NESCO Manager (Software) 2018 – Written exam, question 6 of 8.