Prove the Greedy
int This problem **i am wondering why the greedy algorithm works ? how to prove ,Author said in the tutorial "you need to beleive that it's working " how did he know ? and is it working for any sequence ? i think no ? **