import java.util.ArrayList;
public class Solution {
public int minNumberInRotateArray(int [] array) {
// int a[]=new int[]{3,100,200,3};
int temp=array[0];
for(int i=0;i<array.length-1;i++)
{
if(array[i+1]<array[i])
{
temp=array[i+1];
}
}
return temp;
}
}