Abhinav

1. Pick a feature to implement and see which part of code will it deal with. The best time to cleanup a piece of code is when you are adding a feature to that part of the code.

2. Break the code into smaller methods, rename variables to more meaningful…