10 days of javascript hackerrank solutions