This is my work from @applepen26's first math training camp assignment.
I solved all of the problems by myself.