My code in www.hackerrank.com