@rishav
thats wrong interpretation
fun(n-1) is only called once not twice ,the constant 2 is multiplied to this function call, if you need to analyse you just need to just see how many recursive function calls there,here its 1 only
return 2*fun(n-1)
you can rewrite above statement as:
y=fun(n-1)
z=2*y
return z