Find Max Element In Array Using Functions