Manasa and Stones

platform: hackerrank
competition: Weekly Challenges - Week 2
problem: manasa-and-stones
status: acc