Digtinctive interview question

Basics from my previous work