What transgalatic is doing, is saying that it takes too much time to calculate the output in an exam, where everything is time-critical.

Try it for the cases of (1,1), (1, 2), (2, 1), (2, 2), (3, 1), (1, 3), (3, 2), (2, 3), (3, 3). Not very many cases, but it should give you a general idea of what the function does.