LG Soft India interview question

Write a program to find min max from an array