Whole Minute Dilemma Hackerrank Solution