combinatorics/permutations: Made code for calculating positional distance a bit less verbose.
combinatorics/permutations: Made code for calculating positional
distance a bit less verbose.

Signed-off-by: Saptarshi Mandal <13ec3c7bab52575f3a0cda6406c76269cc13b041@gmail.com>

saurabhjn76/sympy,emon10005/sympy,pandeyadarsh/sympy,maniteja123/sympy,atreyv/sympy,sampadsaha5/sympy,grevutiu-gabriel/sympy,souravsingh/sympy,sahmed95/sympy,yashsharan/sympy,shipci/sympy,mafiya69/sympy,MechCoder/sympy,oliverlee/sympy,jbbskinny/sympy,mcdaniel67/sympy,Titan-C/sympy,dqnykamp/sympy,Shaswat27/sympy,jerli/sympy,liangjiaxing/sympy,wanglongqi/sympy,Mitchkoens/sympy,rahuldan/sympy,Curious72/sympy,ga7g08/sympy,MridulS/sympy,bukzor/sympy,beni55/sympy,farhaanbukhsh/sympy,skidzo/sympy,Designist/sympy,jamesblunt/sympy,souravsingh/sympy,pbrady/sympy,debugger22/sympy,rahuldan/sympy,Vishluck/sympy,lindsayad/sympy,abloomston/sympy,shipci/sympy,jbbskinny/sympy,kaichogami/sympy,skidzo/sympy,atreyv/sympy,MechCoder/sympy,atsao72/sympy,garvitr/sympy,oliverlee/sympy,liangjiaxing/sympy,kaushik94/sympy,kumarkrishna/sympy,hargup/sympy,Arafatk/sympy,sampadsaha5/sympy,pbrady/sympy,kaichogami/sympy,VaibhavAgarwalVA/sympy,atreyv/sympy,asm666/sympy,pandeyadarsh/sympy,sunny94/temp,Arafatk/sympy,sunny94/temp,cccfran/sympy,hargup/sympy,ga7g08/sympy,wanglongqi/sympy,drufat/sympy,wyom/sympy,cswiercz/sympy,hrashk/sympy,Davidjohnwilson/sympy,chaffra/sympy,AkademieOlympia/sympy,postvakje/sympy,sahmed95/sympy,pandeyadarsh/sympy,amitjamadagni/sympy,drufat/sympy,Sumith1896/sympy,vipulroxx/sympy,meghana1995/sympy,abloomston/sympy,kevalds51/sympy,Designist/sympy,beni55/sympy,dqnykamp/sympy,Curious72/sympy,jaimahajan1997/sympy,dqnykamp/sympy,debugger22/sympy,farhaanbukhsh/sympy,chaffra/sympy,vipulroxx/sympy,Mitchkoens/sympy,kumarkrishna/sympy,jbbskinny/sympy,kaushik94/sympy,yashsharan/sympy,iamutkarshtiwari/sympy,shikil/sympy,atsao72/sympy,kmacinnis/sympy,grevutiu-gabriel/sympy,rahuldan/sympy,AkademieOlympia/sympy,sahilshekhawat/sympy,aktech/sympy,saurabhjn76/sympy,Sumith1896/sympy,Davidjohnwilson/sympy,wyom/sympy,mafiya69/sympy,moble/sympy,oliverlee/sympy,abhiii5459/sympy,iamutkarshtiwari/sympy,maniteja123/sympy,kmacinnis/sympy,diofant/diofant,Designist/sympy,asm666/sympy,liangjiaxing/sympy,meghana1995/sympy,moble/sympy,ChristinaZografou/sympy,jerli/sympy,Titan-C/sympy,madan96/sympy,AkademieOlympia/sympy,lidavidm/sympy,abhiii5459/sympy,AunShiLord/sympy,MechCoder/sympy,sunny94/temp,wanglongqi/sympy,Gadal/sympy,garvitr/sympy,hrashk/sympy,hrashk/sympy,debugger22/sympy,cswiercz/sympy,ahhda/sympy,Vishluck/sympy,Shaswat27/sympy,ChristinaZografou/sympy,lindsayad/sympy,VaibhavAgarwalVA/sympy,ga7g08/sympy,abhiii5459/sympy,moble/sympy,yukoba/sympy,asm666/sympy,AunShiLord/sympy,sampadsaha5/sympy,souravsingh/sympy,Curious72/sympy,Mitchkoens/sympy,Davidjohnwilson/sympy,meghana1995/sympy,cccfran/sympy,shikil/sympy,bukzor/sympy,mcdaniel67/sympy,kmacinnis/sympy,shipci/sympy,Arafatk/sympy,amitjamadagni/sympy,aktech/sympy,toolforger/sympy,postvakje/sympy,saurabhjn76/sympy,Sumith1896/sympy,ahhda/sympy,mafiya69/sympy,iamutkarshtiwari/sympy,yukoba/sympy,bukzor/sympy,emon10005/sympy,skidzo/sympy,Gadal/sympy,yashsharan/sympy,kevalds51/sympy,jamesblunt/sympy,sahmed95/sympy,beni55/sympy,drufat/sympy,yukoba/sympy,toolforger/sympy,kaichogami/sympy,atsao72/sympy,jaimahajan1997/sympy,shikil/sympy,MridulS/sympy,jaimahajan1997/sympy,VaibhavAgarwalVA/sympy,kevalds51/sympy,mcdaniel67/sympy,MridulS/sympy,sahilshekhawat/sympy,maniteja123/sympy,madan96/sympy,hargup/sympy,madan96/sympy,lidavidm/sympy,lidavidm/sympy,chaffra/sympy,Titan-C/sympy,vipulroxx/sympy,cccfran/sympy,flacjacket/sympy,pbrady/sympy,srjoglekar246/sympy,skirpichev/omg,kaushik94/sympy,abloomston/sympy,aktech/sympy,farhaanbukhsh/sympy,sahilshekhawat/sympy,Shaswat27/sympy,toolforger/sympy,cswiercz/sympy,postvakje/sympy,ahhda/sympy,garvitr/sympy,Gadal/sympy,AunShiLord/sympy,Vishluck/sympy,ChristinaZografou/sympy,jamesblunt/sympy,wyom/sympy,lindsayad/sympy,kumarkrishna/sympy,emon10005/sympy,grevutiu-gabriel/sympy,jerli/sympy