Given daily prices, return the maximum profit from buying on one day and selling on a later day. Return 0 if no profit is possible.
Practise this challenge
All coding challenges