This is too much nerd for me. Can anyone tell me what is the required pre-requisite of knowledge to understand things like this? Like will knowing basic calculus be enough? What specific topics or subjects will give me good fundamentals on these things? Thank you.
Going through any introductory TCS textbook will help you understand most of this stuff.
CS students do this in their first or second year of their studies, and yes it's tough (at my uni this was among the most feared exams).