Silex application to solve the bucket problem