close #4204
FindMin.findMin
* tests: add test case with mininum not being at the beginning * style: throw IllegalArgumentException when input is empty * style: use enhanced for loop * docs: update doc-str
Co-authored-by: Andrii Siriak <siryaka@gmail.com>