Hackerrank: Halloween party - https://www.hackerrank.com/challenges/halloween-party