Nikolay Domashenko's submission of Fill the Bucket | CodeChef