SLK Group interview question

balanced