If you want the full answer, check IMO 2010 Problem 5 solution.
For simpler hint: Swap is actually very important. One swap could multiply above cell by 2, instead of adding 2 as grow does.