Algorithms/Find maximum/Php method 1