Hackerrank on SplitClub