Smart Interview Basic Hackerrank Javascript Practice Problems