Cognizant interview question

Giving me coding problem about finding subarray based on given condition..(in python) you have to show different approaches until interviewer convinces