Khan.randRange(1, 10) Math.pow(2, Math.floor(Math.log2(i))+1) - 1

Consider the following function: How many asterisks are printed by the method call asterisksPrinter(i)?
(Either write a number, or write "infinite recursion".)

ANS

Note that there are two recursive calls.

Don't forget that the print statement will be exectued on the rollback for EACH of the recursive calls.