Resilinc interview question

writr code for 2 raised to n