Hacker Rank Stock Maximize Soulution Using PHP