Find Max Element In Array Using Functions To Solve