Adobe interview question

Leetcode Word Search and power function implementation question