Naaptol interview question

Method of testing