my codes for the hackerrank.com