Smart Interview Basic Hackerrank Javascript Questions