Day 5 Problem of my Math mini-contest 😎