• + 0 comments
    def designerPdfViewer(h, word):
        # Write your code here
        
        tallest = None
        letter_count = len(word)
        
        for i in word:
            index = ord(i) - 97
            current_word_height = h[index]
            
            if not tallest or tallest < current_word_height:
                tallest = current_word_height
                
        return tallest * letter_count