Please review my Day1 assignment

@budhrg Please review my Day1 assignment
:+1: Didn't thought that. But ideal case is using `map` function. In real world, the length of array is unknown and this solution will not be work for large array. :smile: