Cogitativo Interview Question

Basic coding algorithms and good coding practice, one probability problem. Also my approach for model building.