Amazon interview question

Maximum , avg and sum problems from Arrays