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:

InputOutput
str1=xstr2=x^xYes
str1=xstr2=x^2No

From the NESCO Manager (Software) 2018 – Written exam, question 6 of 8.

More from this paper