Solution of Game of Thrones - I Problem from hackerrank.
https://www.hackerrank.com/challenges/game-of-thrones