Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Repeatedly iterate through the array and check if the current value of original is in the array.
If original is not found, stop and return its current value.
Otherwise, multiply original by 2 and repeat the process.
Use set data structure to check the existence faster.