Smart Interview Basic Hackerrank Javascript Intermediate Solutions