Hackerrank Weakly day2