Intel Corporation interview question

one leetcode easy, one very hard problem requiring heavy math knowledge