Amazon interview question

Questions related to greedy algorithms