DataAnnotation interview question

Program in Python on how to find last digit of Pascal triangle.