SORINT.lab interview question

Write a function in any programming language. (in the chat section)