Topics you may need: Probably all the math you know
P.S. This problem is my all-time favourite. I would say that it has even contributed to me choosing math as a major. I hope it shall bring whoever reading the joy it brought to me the first time I tried it.