Maximise Function Codechef February Challenge Hint and Solution