changed Explicit problem- Worst case approach