The App takes 4 paramaters,
- Integer[] index1
- List < Integer > index2
- String[] set1
- List < String > set2
then for each index from index1, add the string with that index from set1 to answer. Then it does the exact thing for set2 and sort them lexicographically. Simply it merges the given indices.