Function StackComparisionsType checkingis MapCheck is a map Output return boolean valuePreviousis ListNextis String