When Math Meets Coding | Archive Problem

Click here to read the complete problem statement.