Sort the array of strings according to alphabetical order defined by another string
Given a string str and an array of strings strArr[], the task is to sort the array according to the alphabetical order defined by str. Note: str and every string in strArr[] consists of only lower case alphabets. Examples: Input: str = "fguecbdavwyxzhijklmnopqrst", strArr[] = {"geeksforgeeks", "is",