You are given an integer array ranks and a character array suits. You have 5 cards where the ith card has a rank of ranks[i] and a suit of suits[i].
The following are the types of poker hands you can make from best to worst:
"Flush": Five cards of the same suit."Three of a Kind": Three cards of the same rank."Pair": Two cards of the same rank."High Card": Any single card.Return a string representing the best type of poker hand you can make with the given cards.
Note that the return values are case-sensitive.
ranks.length == suits.length == 51 <= ranks[i] <= 13'a' <= suits[i] <= 'd'ranks = [13,2,3,1,9], suits = ["a","a","a","a","a"]"Flush"ranks = [4,4,2,4,4], suits = ["d","a","a","b","c"]"Three of a Kind"ranks = [10,10,2,12,9], suits = ["a","b","c","a","d"]"Pair"