moved if statment to correctly show numbers under 4million
moved code to own function.
made array local variable.
removed local variable.
updated substring. Changed array to start with 1 rather than 0. Updated for loop to start at 1 to reduce dupe values in work.