Day 3 Problem of my Math mini-contest 😎