Javascript Split Number Into Array Interview