Dynamic Yield interview question

asked me about sql and javascript