The questions were same as in this post . https://leetcode.com/discuss/interview-experience/1706779/google-phone-swe-india
The constraint in the first question was that the width of the page could be smaller than the longest word in the input.