In the first example, $x=10$ and $d=5$. You need to find an array with a product of $10$. The array ``$5,2$'' fits, because $5\times 2=10$ and each number is not greater than $d$. It is impossible to make an array of size one, because then the only element should be equal to $x$, and in this test $x>d$.