Bontouch interview question

a coding test case and questions around that