Interview question
Here’s a nice simple interview question:
In a given .NET string, assume there are line breaks in standard \r\n form (basically Environment.NewLine).
Write a method that inserts a space between two consecutive line breaks to separate any two line breaks from each other.
Also, anyone venture a guess what is a practical application for such a method?