3410. Feynman

Problem code: SAMER08F
Coded in C# but later ported to C++, since the problem does not offer
other languages