HACKERRANK: Angry Children

https://www.hackerrank.com/challenges/angry-children