Php Get Multidimensional Array Codeforces Problem Set 4