Sollicitatievraag bij Check Point Software Technologies

Given a string and an integer, crop the string so it length<=integer.