Challenge idea: Given a grid filled with + and slope change all the plusses, whose center is above the line y=mx as an x.
Considering the width and height of the plus as a unit, and O is the bottom-left corner.
Example:
Input:
+++++
+++++
+++++
+++++
2
Output:
xx+++
xx+++
x++++
x++++
+++++