nodejs script to solve the challenge