Added Approach comments
Removed unused code
Prints sorted list of free pins