minion game hackerrank solution