• + 0 comments

    Python with one line

    def designerPdfViewer(h, word):
        return len(word) * max([h[ord(_) - ord('a')] for _ in word])