Week 12 Nptel Java Assignment