Solution for Mars Rovers Problem