Chubb interview question

Basics and programming and simple code snippets to look into efficiency