Solved Using Java And The Code Given Solve The Problem

Solved Using Java And The Code Given Solve The Problem