Leetcode Easy Question Of Array In Php