LinkedIn Interview Question

Phone interview had 2 questions: https://leetcode.com/problems/powx-n/ https://leetcode.com/problems/shortest-word-distance-iii/