Intuit interview question

Leetcode pirates and thieves question