Given a problem statement give a detailed breakdown and explanation for the same without giving answer.