Jump Game, Longest Common Prefix

Exercises from LeetCode, both are accepted