Frage im Vorstellungsgespräch bei Chargebee

Note Interviewer will not care about your QA tech stack (whether you are from JS/C#/Python based framework) interview will expect you to answer Java-Maven-Jenkins way which is absurd. So good luck. 1. WAP to return output for the following set Input : aabaaac Output : a2b1a3c1" 2. Last minute blocker - your course of action? 3. Locator strategy(oddly expected to write locator based on text contains xpath) 4. How does test framework know the list of test to be run?(I am from Azure DevOps and interviewer is from jenkins-java background but interviewer strongly expected very "specific" answer. 5. Finding element or waiting for element within iframe 6. More questions on test data provider in automation test.