Solutions for https://www.hackerrank.com/