My codes for the hackerrank.com