Any idea on how to solve ?
Please help me get an idea for this HackerEarth question.
In the editorial, they mentioned 12 as a threshold value but how did they approach it?