Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
Input:Digit string "23" Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"].
/** * Return an array of size *returnSize. * Note: The returned array must be malloced, assume caller calls free(). */ char* digit2Letter(char digit){ switch(digit){ case '2': return "abc"; case '3': return "def"; case '4': return "ghi"; case '5': return "jkl"; case '6': return "mno"; case '7': return "pqrs"; case '8': return "tuv"; case '9': return "wxyz"; default: return ""; } } char** letterCombinations(char* digits, int* returnSize) { char** returnArray = NULL; if(*digits == '