Implemented HackerRank critics problem