Simple implementation for the code chef beginner challenge Bear and Candies (https://www.codechef.com/problems/CANDY123). All inputs are given by CandyConsumeTest, and will not expect user to provide inputs using command line. Need a different set of test cases, please update CandyConsumeTest: tests in setup method.
to execute: Need gradle and java 1.8
gradle clean build test