hackerrank

This is my implementation for HackerRank.