Java-Solution-

Instruction

  1. Please contribue code with valid syntax
  2. Use Comments Properly