added new question
added max profit algo