SentinelOne interview question

Problem solving live coding question.