100 Days Of Code Hackerrank Javascript