Create Array Of Size N Javascript Interview