Leetcode Problem With Solution Examples Math