Matic Interview Question

Bayes rule, linked list question