Hackerrank Java Factory Pattern Solution
According to Wikipedia, a factory is simply an object that returns another object from some other method call, which is assumed to be "new".
In this problem, you are given an interface Food. There are two classes Pizza and Cake which implement the Food interface, and they both