First attempt at princess challenge: hackerrank.com/challenges/saveprincess