April long challenge SJ1

Can someone tell me some test cases for which this submission fails SJ1(Playing with numbers) in April long challenge

Edit : I found the gcd of all the values in the path from root to leaf node and then subtracted the gcd of the parameter and this total gcd from the parameter