Compare sublist values within a list

Welcome to the community… check this post…