solved 2,3,4
solved4,5 and added revere list code)