adding bracket exercise (array/linked_list)