Added solution to max profit from codility