Two coding challenges about integers