Converted "Math Problems" folder to Swift.

Fixed some warning for deprecation issues.