Meta interview question

Provide your code to get an expected output.