I did. Interview for AWS principal engineer position and their screening call had a 20 minutes make a code like structure to solve this problem. They did not ask me to write Java or anything compiled but something that shows I can actually turn my idea into some for of code.
I think having such kind of question is very much expected and I would wonder if a company does not have it for external/unknown hires.