Game TieBreaker Problem (Algorithms I) - Memory Allocation Issue

So I was able to get the correct solution for this problem, but then I got a note that my solution exceeds the memory that is supposed to be allocated to it. I only used if, else if, and else statements so I was wondering if there might be general suggestions for decreasing memory space I use up? Thank you!