Tredence interview question

Coding Test