Added the MaxApples program

Added the MaxApples program