Adobe Interview Question

Coding questions: Two sum and power function