Detailed Explanation Of The Problem