Adobe interview question

Coding questions: Two sum and power function