ABC interview question

the process was lengthy too