Function StackComparisionsType checkingis ListCheck is a list Output return boolean valuePreviousis Integer8Nextis Map