added various solutions for finding out last element in any collection