Leetcode Basic Problems In Javascript Object To String Php