Modified reversed without using Array#reverse