adding a extra condition to check if the array is rotated,if not return condition to FindMinInRotatedArray