Domanda di colloquio di Pinterest

Given a string and a screen dimension (width x height), write a function to return whether or not the string can fit on the screen.