User talk:Gursimransinghhanspal

The previous psuedocode was actually much easier to understand.