Submitting solution for 6_rr_pad_array