Beyond Petals Interview Question

maths