ABC interview question

Starting with basics and then dive through deep