ABC interview question

Basics