getting testcases wrong.
Not able to solve
@RULEREMPIRES,
Approach needs to be changed.
For this problem, fix one cow at the first position and then move ahead.
Create a minimum Distance function which basically calculates a mid point and treats that as the minimum distance to place a cow.
If we have a position greater than or equal to this distance, we fix the cow at that position.