added solution of max product array and updated two solutions