Smart Interview Basic Hackerrank Javascript User