Hackerrank javascript basic certification solutions