[Hacker Rank] 20/20 Hack August - MarkAndToys Problem