Sort an array of strings according to string lengths using Map
Given an array of strings, we need to sort the array in increasing order of string lengths, using Map Data Structure. Examples: Input: str[] = {"GeeksforGeeeks", "I", "from", "am"} Output: I am from GeeksforGeeks Input: str[] = {"You", "are", "beautiful", "looking"} Output: You are looking beautiful