text: Function to check if chocolates can be eaten for ' mid ' no . of days
code: bool helper ( int mid ) { int cnt = 0 ; for ( auto i : mp ) { int temp = i . second ; while ( temp >= mid ) { temp -= mid ; cnt ++ ; } }