My solution of botsaves princess, challenge 1 from hackerrank.com