Removed commented code after implementing Solution