Pregunta de entrevista de Adobe

Coding questions: Two sum and power function