Solved Halloween party from HackerRank