here i didnt understand that if in assign min = containerArray(0) it will pick only 5 and will compare to the rest of the values of array then how it showed 1 as min.
like foreach
5 < 5 =
8< 5 =
6< 5=
9<5=
3<5= it should be the lowest cuz condition has fullfilled here